package com.wanmait.zaisousuo.mapper;

import com.wanmait.zaisousuo.pojo.GarbageType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GarbageTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GarbageType record);

    int insertSelective(GarbageType record);

    GarbageType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GarbageType record);

    int updateByPrimaryKey(GarbageType record);

    List<GarbageType> findAll();
    //后台用，删除的也查出来
    List<GarbageType> findAll2();

    int changeTypeState(@Param("flag")Boolean flag,@Param("id")Integer id);
    //前台用找到所有的分类
    List<GarbageType> findAllType();
}